-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: zero filler #3465
tests: zero filler #3465
Conversation
ea7bb25
to
e2efda2
Compare
Signed-off-by: Alex Pana <[email protected]>
e2efda2
to
9538d03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Had one question but not a blocker for now.
|
||
case reflect.Slice: // undefined for now | ||
|
||
// count := rf.randStream.Intn(10) + 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we silently skip slice and map fields, or should we explicitly fail? Alternatively, could we create empty slices and maps to use as the "zero value"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can revisit this decision but I think ignoring more complex types for now is okay. As I wire this into the dev/ generation tools we will iterate here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yuwenma The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1f51004
into
GoogleCloudPlatform:master
Adding a zero filler (similar to the random filler) to the KRMgen. We will use this in tooling to create tests for set 0 scenarios.